import request from '@/utils/request'

// 查询航线任务列表
export function listPlanHdr(query) {
  return request({
    url: '/manage/planHdr/list',
    method: 'get',
    params: query
  })
}

// 查询航线任务详细
export function getPlanHdr(planId) {
  return request({
    url: '/manage/planHdr/' + planId,
    method: 'get'
  })
}

// 新增航线任务
export function addPlanHdr(data) {
  return request({
    url: '/manage/planHdr',
    method: 'post',
    data: data
  })
}

// 修改航线任务
export function updatePlanHdr(data) {
  return request({
    url: '/manage/planHdr',
    method: 'put',
    data: data
  })
}

// 删除航线任务
export function delPlanHdr(planId) {
  return request({
    url: '/manage/planHdr/' + planId,
    method: 'delete'
  })
}
